Update 2.0 Save/Load API names/arguments/doc examples#27138
Merged
chenwhql merged 3 commits intoPaddlePaddle:release/2.0-betafrom Sep 8, 2020
Merged
Conversation
* update set_dict method name & add aliases * fix var name error * fix alias formats * use set_state_dict in unittest * add decorator solve compatible problem * polish decorator * replace layer set_state_dict by patched method * remove import monkey path layer * fix import function error * add unittest for coverage
…ddlePaddle#26718) * support load infer model format state dict * add unittests * remove keep name table * recolve circle inport * fix compatible problem * recover unittest * polish doc and comment
…Paddle#27056) * change configs to config & update examples * fix deprecate decorator conflict
|
Thanks for your contribution! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR types
Function optimization
PR changes
APIs
Describe
关于save load的一些API形态改动,为避免2.0-beta宣传后,2.0-RC API又发生变动,这里cherry-pick一下,相关功能之前已经在2.0-beta中,本次cherry-pick主要改动接口形态
Cherry-pick PRs:
set_dict方法名为set_state_dict,方法中的stat_dict参数名统一改为state_dictconfigs参数名为config,单数与SaveLoadConfig一致inference modelformat save result #26718